<?php /* Smarty version 2.6.16, created on 2011-09-24 14:53:01
         compiled from test.tpl */ ?>
<?php echo '
<link href="style/tab.css" rel="stylesheet" type="text/css" />
<link href="jsthickbox/thickbox.css" rel="stylesheet" type="text/css" />
<script src="jsthickbox/jquery-latest.js" type="text/javascript"></script>
<script src="jsthickbox/jquery-latest.pack.js" type="text/javascript"></script>
<script src="jsthickbox/thickbox.js" type="text/javascript"></script>
'; ?>

   <div class="right-panel">
	<div class="container">
		<ul class="tabs">
		<li class="active"><a href="#">Inbox</a></li>	
		<li><a href="send_item.php">Send Item</a></li>				
		</ul>
	<div class="clear"></div>
	<div class="tab_container">	
						
	  <div id="tab1" class="tab_content" style="margin-top:20px;">
		  <div class="dashboard-title"><h1 title="Registration"></h1></div>
		  <div class="clear"></div>
		  <div class="total-message">New Messages : <?php echo $this->_tpl_vars['latest_msgArrNum']; ?>
</div>
		  <div class="clear"></div>
		  <div class="message-list">
		  <?php unset($this->_sections['msg']);
$this->_sections['msg']['name'] = 'msg';
$this->_sections['msg']['loop'] = is_array($_loop=$this->_tpl_vars['latest_msgArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['msg']['show'] = true;
$this->_sections['msg']['max'] = $this->_sections['msg']['loop'];
$this->_sections['msg']['step'] = 1;
$this->_sections['msg']['start'] = $this->_sections['msg']['step'] > 0 ? 0 : $this->_sections['msg']['loop']-1;
if ($this->_sections['msg']['show']) {
    $this->_sections['msg']['total'] = $this->_sections['msg']['loop'];
    if ($this->_sections['msg']['total'] == 0)
        $this->_sections['msg']['show'] = false;
} else
    $this->_sections['msg']['total'] = 0;
if ($this->_sections['msg']['show']):

            for ($this->_sections['msg']['index'] = $this->_sections['msg']['start'], $this->_sections['msg']['iteration'] = 1;
                 $this->_sections['msg']['iteration'] <= $this->_sections['msg']['total'];
                 $this->_sections['msg']['index'] += $this->_sections['msg']['step'], $this->_sections['msg']['iteration']++):
$this->_sections['msg']['rownum'] = $this->_sections['msg']['iteration'];
$this->_sections['msg']['index_prev'] = $this->_sections['msg']['index'] - $this->_sections['msg']['step'];
$this->_sections['msg']['index_next'] = $this->_sections['msg']['index'] + $this->_sections['msg']['step'];
$this->_sections['msg']['first']      = ($this->_sections['msg']['iteration'] == 1);
$this->_sections['msg']['last']       = ($this->_sections['msg']['iteration'] == $this->_sections['msg']['total']);
?>		  
			  <div class="message-block">
				 <h3><?php echo $this->_tpl_vars['latest_msgArr'][$this->_sections['msg']['index']]['name']; ?>
--<?php echo $this->_tpl_vars['latest_msgArr'][$this->_sections['msg']['index']]['date_added']; ?>
</h3>
				 <div class="message-desc">
				 <p><?php echo $this->_tpl_vars['latest_msgArr'][$this->_sections['msg']['index']]['message_text']; ?>
</p>
	   </div>
				<?php if ($_SESSION['user_id'] != '' && $_SESSION['user_id'] != $this->_tpl_vars['latest_msgArr'][$this->_sections['msg']['index']]['user_id_from']): ?>
				 <div class="reply"><a href="reply.php?reply_of_msg=<?php echo $this->_tpl_vars['latest_msgArr'][$this->_sections['msg']['index']]['message_id']; ?>
&user_id_to=<?php echo $this->_tpl_vars['latest_msgArr'][$this->_sections['msg']['index']]['user_id_from']; ?>
&height=250&width=200&modal=true"  class="thickbox" title="Reply">reply</a></div>
				 <?php endif; ?>
				 <div class="clear"></div>
			  </div>
			   <?php unset($this->_sections['msg1']);
$this->_sections['msg1']['name'] = 'msg1';
$this->_sections['msg1']['loop'] = is_array($_loop=$this->_tpl_vars['latest_msg_subArr'][$this->_sections['msg']['index']]) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['msg1']['show'] = true;
$this->_sections['msg1']['max'] = $this->_sections['msg1']['loop'];
$this->_sections['msg1']['step'] = 1;
$this->_sections['msg1']['start'] = $this->_sections['msg1']['step'] > 0 ? 0 : $this->_sections['msg1']['loop']-1;
if ($this->_sections['msg1']['show']) {
    $this->_sections['msg1']['total'] = $this->_sections['msg1']['loop'];
    if ($this->_sections['msg1']['total'] == 0)
        $this->_sections['msg1']['show'] = false;
} else
    $this->_sections['msg1']['total'] = 0;
if ($this->_sections['msg1']['show']):

            for ($this->_sections['msg1']['index'] = $this->_sections['msg1']['start'], $this->_sections['msg1']['iteration'] = 1;
                 $this->_sections['msg1']['iteration'] <= $this->_sections['msg1']['total'];
                 $this->_sections['msg1']['index'] += $this->_sections['msg1']['step'], $this->_sections['msg1']['iteration']++):
$this->_sections['msg1']['rownum'] = $this->_sections['msg1']['iteration'];
$this->_sections['msg1']['index_prev'] = $this->_sections['msg1']['index'] - $this->_sections['msg1']['step'];
$this->_sections['msg1']['index_next'] = $this->_sections['msg1']['index'] + $this->_sections['msg1']['step'];
$this->_sections['msg1']['first']      = ($this->_sections['msg1']['iteration'] == 1);
$this->_sections['msg1']['last']       = ($this->_sections['msg1']['iteration'] == $this->_sections['msg1']['total']);
?>		
			   <div class="message-block">
				 <h3><?php echo $this->_tpl_vars['latest_msg_subArr'][$this->_sections['msg']['index']][$this->_sections['msg1']['index']]['name']; ?>
--<?php echo $this->_tpl_vars['latest_msg_subArr'][$this->_sections['msg']['index']][$this->_sections['msg1']['index']]['date_added']; ?>
</h3>
				 <div class="message-desc-right">
				 <p><?php echo $this->_tpl_vars['latest_msg_subArr'][$this->_sections['msg']['index']][$this->_sections['msg1']['index']]['message_text']; ?>
</p>
	   			</div>				
				 <div class="clear"></div>
			  </div>
			  <?php endfor; endif; ?>		
		  <?php endfor; endif; ?> 
			 <!-- <div class="viewall"><a href="#">View All</a></div>-->
			  <div class="clear"></div>          
		  </div>     
		  <div class="clear"></div>
   	  </div>
	  
	</div>
	</div>
	</div>